package com.apollographql.apollo.api;

import java.util.List;
import java.util.Map;
import com.kt.Deprecated;
import com.kt.Metadata;
import com.kt.ReplaceWith;
import com.kt.collections.CollectionsKt;
import com.kt.collections.MapsKt;
import com.kt.jvm.internal.DefaultConstructorMarker;
import com.kt.jvm.internal.Intrinsics;

@Metadata(bv = {1, 0, 3}, d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\u0018\u00002\u00020\u0001:\u0001\u0016B5\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u000e\b\u0002\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005\u0012\u0016\b\u0002\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0003\u0012\u0006\u0012\u0004\u0018\u00010\u00010\b¢\u0006\u0002\u0010\tJ\u0016\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0003\u0012\u0006\u0012\u0004\u0018\u00010\u00010\bH\u0007J\u0013\u0010\u0010\u001a\u00020\u00112\b\u0010\u0012\u001a\u0004\u0018\u00010\u0001H\u0002J\b\u0010\u0013\u001a\u00020\u0014H\u0016J\u000e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005H\u0007J\n\u0010\u0002\u001a\u0004\u0018\u00010\u0003H\u0007J\b\u0010\u0015\u001a\u00020\u0003H\u0016R\u001f\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0003\u0012\u0006\u0012\u0004\u0018\u00010\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0017\u0010\u0004\u001a\b\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u0017"}, d2 = {"Lcom/apollographql/apollo/api/Error;", "", "message", "", "locations", "", "Lcom/apollographql/apollo/api/Error$Location;", "customAttributes", "", "(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V", "getCustomAttributes", "()Ljava/util/Map;", "getLocations", "()Ljava/util/List;", "getMessage", "()Ljava/lang/String;", "equals", "", "other", "hashCode", "", "toString", "Location", "apollo-api"}, k = 1, mv = {1, 4, 0})
/* compiled from: Error.kt */
public final class Error {
    private final Map<String, Object> customAttributes;
    private final List<Location> locations;
    private final String message;

    public Error(String message2, List<Location> list, Map<String, ? extends Object> map) {
        Intrinsics.checkParameterIsNotNull(message2, "message");
        Intrinsics.checkParameterIsNotNull(list, "locations");
        Intrinsics.checkParameterIsNotNull(map, "customAttributes");
        this.message = message2;
        this.locations = list;
        this.customAttributes = (Map<String, Object>) map;
    }

    public final String getMessage() {
        return this.message;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ Error(String str, List list, Map map, int i, DefaultConstructorMarker defaultConstructorMarker) {
        this(str, (i & 2) != 0 ? CollectionsKt.emptyList() : list, (i & 4) != 0 ? MapsKt.emptyMap() : map);
    }

    public final List<Location> getLocations() {
        return this.locations;
    }

    public final Map<String, Object> getCustomAttributes() {
        return this.customAttributes;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "message", imports = {}))
    public final String message() {
        return this.message;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "locations", imports = {}))
    public final List<Location> locations() {
        return this.locations;
    }

    @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "customAttributes", imports = {}))
    public final Map<String, Object> customAttributes() {
        return this.customAttributes;
    }

    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if ((other instanceof Error) && !(!Intrinsics.areEqual(this.message, ((Error) other).message)) && !(!Intrinsics.areEqual(this.locations, ((Error) other).locations)) && !(!Intrinsics.areEqual(this.customAttributes, ((Error) other).customAttributes))) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return (((this.message.hashCode() * 31) + this.locations.hashCode()) * 31) + this.customAttributes.hashCode();
    }

    public String toString() {
        return "Error(message = " + this.message + ", locations = " + this.locations + ", customAttributes = " + this.customAttributes + ')';
    }

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\t\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003¢\u0006\u0002\u0010\u0005J\b\u0010\u0004\u001a\u00020\u0003H\u0007J\u0013\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\u0001H\u0002J\b\u0010\f\u001a\u00020\rH\u0016J\b\u0010\u0002\u001a\u00020\u0003H\u0007J\b\u0010\u000e\u001a\u00020\u000fH\u0016R\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u0010"}, d2 = {"Lcom/apollographql/apollo/api/Error$Location;", "", "line", "", "column", "(JJ)V", "getColumn", "()J", "getLine", "equals", "", "other", "hashCode", "", "toString", "", "apollo-api"}, k = 1, mv = {1, 4, 0})
    /* compiled from: Error.kt */
    public static final class Location {
        private final long column;
        private final long line;

        public Location(long line2, long column2) {
            this.line = line2;
            this.column = column2;
        }

        public final long getLine() {
            return this.line;
        }

        public final long getColumn() {
            return this.column;
        }

        @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "line", imports = {}))
        public final long line() {
            return this.line;
        }

        @Deprecated(message = "Use property instead", replaceWith = @ReplaceWith(expression = "column", imports = {}))
        public final long column() {
            return this.column;
        }

        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
            if ((other instanceof Location) && this.line == ((Location) other).line && this.column == ((Location) other).column) {
                return true;
            }
            return false;
        }

        public int hashCode() {
            return -1;
        }

        public String toString() {
            return "Location(line = " + this.line + ", column = " + this.column + ')';
        }
    }
}
